<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html><head><title>预览广告图片</title></head>
<body>
<div id="content_div" align="center" style="width: 100%%;height:100%;overflow: scroll;">
</div>
<script type="text/javascript">
var picNames = "${param.picNames}".split(",");
var contextPath = "${pageContext.request.contextPath}";
var folder = "${param.id}"==""?"temp":"${param.id}";
var div_c = document.getElementById("content_div");
var tempHtml = "";
for(var i in picNames) {
	tempHtml += '<h2 class="contentTitle">'+picNames[i]+'</h2>';
	tempHtml += '<img src="'+contextPath+'/upload/images/advertising/'+folder+'/'+picNames[i]+'"/>';
}
div_c.innerHTML = div_c.innerHTML + tempHtml;
</script>
</body></html>